﻿using YFurion.Security;

namespace UpperComputer.Core.Extensions
{
    public static class StringExtensions
    {
        public static string GetMD5PrefixPassword(this string value)
        {
            return MD5.Encrypt(UpperComputerCoreConst.HashPrefix + value);
        }

        public static string GetMD5SuffixPassword(this string value)
        {
            return MD5.Encrypt(value + UpperComputerCoreConst.HashSuffix);
        }
    }
}
